package com.cloudpivot.receivales.contract.repository.erpcontract;

import com.cloudpivot.receivales.contract.entity.erpcontract.CMContractB;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * cmcontractB持久层
 */
@Repository
public interface CMContractBRepository extends JpaRepository<CMContractB,String> {
    /**
     * 新增合同主表
     */

    /**
     * 更新存放位置字段
     */
    @Modifying
    @Query(nativeQuery=true,value = "update CM_Contract_B set cDefine13=:cDefine13 where strContractID=:strContractID ")
    void updatecDefine13(String cDefine13,String strContractID);
}
